<%@page import="dao.*"%>
<%@page import="domain.*"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../common/IncludeTop.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>Cart.jsp</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache,must-revalidate">
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="../css/jpetstore.css">
</head>
<body>
	<div id="BackLink">
		<a href="Cart.jsp">返回购物车</a>
	</div>
<center>
 <p style="color: blue;font-weight: bold;">购物车</p>
			<table>
				<tr>
					<th>项目编号</th>
					<th>商品编号</th>
					<th>说 明</th>
					<th>数量</th>
					<th>价 格</th>
					<th>总价</th>
					<th></th>
				</tr>
				<c:forEach var="cartItem" items="${cart.cartItemList}">
      <form action="Cart?action=update&&itemid=${cartItem.item.itemid}" name="update" method="post">
					<tr>
						<td>${cartItem.item.itemid}</a>
						</td>
						<td>${cartItem.item.productid}</td>
						<td>${cartItem.item.attr1}</td>
					    <td>${cartItem.qty}</td>
					    <td>&yen;${cartItem.item.listprice}</td>
						<td>&yen;${cartItem.totalPrice}</td>
						<td><a href="accountCart?action=remove&&itemid=${cartItem.item.itemid}" class="button">从购物车删除</a></td>
					</tr>
				</c:forEach>
				   <tr><td colspan="3">购买宠物数量:${cart.allQty}</td>
					   <td colspan="4">合计:${cart.allTotalPrice}</td>
					</tr>
			</table>
			</form>
			<a  class="button" href="Main.jsp">继续</a>
			<div style="margin-top: 10px;"></div>
		</center>
</body>
</html>
<%@ include file="../common/IncludeBottom.jsp"%>
